<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/app/common/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>用户管理</title>
		<link href="<%=basePath%>/app/main/style/inputpage.css"
			rel="stylesheet" type="text/css" />
	</head>

	<body>
		<form id="inputForm"
			action="<%=basePath%>app/sys/user/user!save" method="post">
			<input type="hidden" name="id" value="${id}" />
			<table width="100%" border="0" id="topSpace">
				<tr>
					<td></td>
				</tr>
			</table>
			<div id="edit">
				<table border="0" align="center" cellpadding="2" cellspacing="1"
					id="tableAddCon" width="90%">
					<tr>
						<th colspan="4" class="stitle">
							用户信息
						</th>
					</tr>
					<tr>
						<th width='15%'>
							登录名:
						</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="loginName"
								value="${loginName}"  />
		<span style="font-size:12px;color:red"><s:fielderror fieldName="msg.loginName" /></span>
							&nbsp;
						</td>
						<th width='15%'>
							显示名:
						</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="showName"
								value="${showName}"  />
							&nbsp;
						</td>


					</tr>
					<tr>
						<th width='15%'>
							类型:
						</th>
						<td width='35%'>
							<select name="type" id="type">
								<option value="high"
									<c:if test="${type eq 'high'}">selected="selected"</c:if>>
									一级
								</option>
								<option value="mid"
									<c:if test="${type eq 'mid'}">selected="selected"</c:if>>
									二级
								</option>
								<option value="low"
									<c:if test="${type eq 'low'}">selected="selected"</c:if>>
									三级
								</option>
							</select>
							&nbsp;
						</td>
						<th width='15%'>
							状态:
						</th>
						<td width='35%'>
							<select name="status" id="status">
								<option value="Y"
									<c:if test="${status eq 'Y'}">selected="selected"</c:if>>
									在用
								</option>
								<option value="N"
									<c:if test="${status eq 'N'}">selected="selected"</c:if>>
									停用
								</option>
							</select>
							&nbsp;
						</td>
					</tr>
					<tr>
      		<th align="center" colspan="4" style="padding:5px">
      		 <c:if test="${user.type eq 'high'}">
					<input type="submit" class="submit" value="提交" />
				</c:if>
							&nbsp;
							<input type="button" class="submit" value="返回"
								onclick="javascript:location.href='<%=basePath%>app/sys/user/user'" />
						</th>
					</tr>
				</table>

			</div>
			</div>
			
		</form>
		<div style="text-align:left;margin-left:20px">
		<span style="font-size:12px;color:red">
				关于类型的说明：<br>
				1、一级是最高权限，可以增加、修改<br>
				2、二级可以查看全部内容<br>
				3、三级可以查看除保密信息以外的内容<br>
				4、新用户默认密码为123<br>
			</span>
			</div>
	</body>
</html>
